package com.cmtime.array;

import java.util.Random;

public class ArrayDemo {


	public static void main(String[] args) {
		int[] arr = new int[1000001];
		Random ran = new Random();
		for(int i=0;i<1000000;i++){
			arr[i] = ran.nextInt();
		}
		
		int base = arr[0];
		for(int i=0;i<arr.length;i++){
			if(arr[i] > base){
				base = arr[i];
			}
		}
	}

}
